package com.neusoft.neuiotms.dcom.vo;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class WorkDailyImportVO implements IExcelDataModel, IExcelModel {

    @NotNull(message = "不能为空")
    @Excel(name = "日期", orderNum = "0", format = "yyyy/MM/dd HH:mm:ss")
    private Date dailyReportDate;

    @NotBlank(message = "不能为空")
    @Excel(name = "单位", orderNum = "1", width = 30)
    private String unit;

    @NotBlank(message = "不能为空")
    @Excel(name = "运维小组", orderNum = "2", width = 20)
    private String operationGroup;

    @Excel(name = "请求人", orderNum = "3")
    private String eventRequester;

    @NotBlank(message = "不能为空")
    @Excel(name = "响应方式", replace = {"驻场_resident", "机动_maneuver" }, addressList = true, orderNum = "4")
    private String responseMethod;

    @Excel(name = "处理地点", orderNum = "5", width = 30)
    private String incidentLocation;

    @NotBlank(message = "不能为空")
    @Excel(name = "处理人", orderNum = "6", width = 15)
    private String incidentUser;

    @Excel(name = "服务类型", orderNum = "7", width = 20)
    private String serviceType;

    @Excel(name = "服务属性", orderNum = "8")
    private String serviceAttributes;

    @NotNull(message = "不能为空")
    @Excel(name = "开始时间", orderNum = "9", format = "HH:mm")
    private Date serviceStartTime;

    @NotNull(message = "不能为空")
    @Excel(name = "结束时间", orderNum = "10", format = "HH:mm")
    private Date serviceEndTime;

    @Excel(name = "事件等级", orderNum = "11", width = 20)
    private String eventLevel;

    @Excel(name = "服务单号", orderNum = "12")
    private String trackingNo;

    @NotBlank(message = "不能为空")
    @Excel(name = "工作内容", orderNum = "13")
    private String jobContent;

    @Excel(name = "备注", orderNum = "14")
    private String remarks;

    private String errorMsg;

    private Integer rowNum;

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(final String errorMsg) {
        this.errorMsg = errorMsg;
    }

    @Override
    public Integer getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(final Integer rowNum) {
        this.rowNum = rowNum;
    }

}
